package com.aoip.telemetry.telemetry.entity.order;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author chenbai
 * @version 1.0
 * @date 2022/2/22 16:40
 */
@Data
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("rel_order_element")
@ApiModel(description = "指令、要素关联关系表")
public class RelOrderElementEntity implements Serializable {
    private static final long serialVersionUID = 2844420425233903036L;
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("数据id")
    private String id;

    @TableField(value = "order_id")
    @ApiModelProperty("指令主键")
    private String orderId;

    @TableField(value = "element_msg")
    @ApiModelProperty("要素说明")
    private String elementMsg;

    @TableField(value = "element_type")
    @ApiModelProperty("要素类型")
    private String elementType;

    @TableField(value = "element_value")
    @ApiModelProperty("要素值")
    private String elementValue;

    @TableField(value = "element_regex")
    @ApiModelProperty("要素正则表达式")
    private String elementRegex;

    @TableField(value = "element_order")
    @ApiModelProperty("要素顺序")
    private int elementOrder;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private LocalDateTime modifyTime;

    @TableField(value = "del_flag", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("删除标识")
    @TableLogic
    private Integer delFlag;

    @TableField(value = "bz")
    @ApiModelProperty("备注信息")
    private String bz;
}
